//
//  Found.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "Found.h"

@implementation Found
+ (instancetype)FoundWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        NSNumberFormatter* numberFormatter = [[NSNumberFormatter alloc] init];
        self.fundId = [[numberFormatter stringFromNumber:dic[@"Id"]] intValue];
        self.UID = [[numberFormatter stringFromNumber:dic[@"UID"]] intValue];
        self.Money = [[numberFormatter stringFromNumber:dic[@"Money"]] intValue];
        self.PayType = [[numberFormatter stringFromNumber:dic[@"PayType"]] intValue];
        self.From = dic[@"From"];
        self.CreateTime = (NSDate *)dic[@"CreateTime"];
        self.UserName = dic[@"UserName"];
        self.NickName = dic[@"NickName"];
    }
    return self;
}
@end
